//
//  XLScanContentVC.m
//  industry
//
//  Created by zxs on 2021/1/28.
//  Copyright © 2021 Haier. All rights reserved.
//

#import "XLScanContentVC.h"

@interface XLScanContentVC ()

@property (nonatomic, strong) XLLabel *contentLabel;

@end

@implementation XLScanContentVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationItem.title = @"扫描内容";
    [self buildView];
}

- (void)buildView {
    self.contentLabel.text = self.content;
    [self.view addSubview:self.contentLabel];
    
    [self.contentLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.equalTo(20);
        make.bottom.right.equalTo(-20);
    }];
}

#pragma mark - Setter/getter
- (XLLabel *)contentLabel {
    if (!_contentLabel) {
        _contentLabel = [[XLLabel alloc] init];
        _contentLabel.font = [UIFont fontOfPingFangSCRegularWithSize:16];
        _contentLabel.textColor = [UIColor blackColor];
        _contentLabel.numberOfLines = 0;
        _contentLabel.textAlignment = NSTextAlignmentCenter;
    }
    return _contentLabel;
}


@end
